home *** CD-ROM | disk | FTP | other *** search
Makefile | 1991-05-01 | 1.7 KB | 44 lines | [TEXT/MPS ] |
- #################################################################################
- # File: MakeFile for the PICT translator #
- # Target: MacPaint #
- #################################################################################
-
- TranslatorName = MacPaint ### Whatever you like, but try to be descriptive
-
- Creator = 'Clrs' ### This may be changed if you like (if you want to use a different icon, for instance
- Type = 'Fltr' ### This must not be changed
-
- ResType = 'PFLT' ### This is for Picture import translators
- ResNum = 135 ### Your choice, but must match the number in the FTYP resource
-
- Sources = MacPaintImport.c ### For documentation only, not used by make
-
- HeaderPath = :::XTND Headers:XTNDCIncludes: ### Changed this if you reorganize the folder structure
-
- Headers = "{HeaderPath}"XTNDInterface.h ∂
- "{HeaderPath}"XTNDPictTranslator.h ### Required headers for a Picture import translator
-
-
- ### Default Dependency/Build Rule
-
- .c.o ƒ .c {Headers}
- C {Default}.c {COptions} -r -d MPW -d MPWC
-
-
- ### This copies the resources from MacPaintImport.π.rsrc into the translator file. It
- ### deletes the old resource fork before adding the new resources. This must be the
- ### first dependency for the target file, since it deletes all existing resources.
-
- {TranslatorName} ƒƒ MacPaintImport.r MacPaintImport.π.rsrc MakeFile
- Rez MacPaintImport.r -t {Type} -c {Creator} ∂
- -o {TranslatorName}
-
-
- ### This puts the code into the resource type and number specified above in the translator file
-
- {TranslatorName} ƒƒ MacPaintImport.c.o MakeFile
- Link -rt {ResType}={ResNum} -m main -sn Main="MacPaint - IN" ∂
- MacPaintImport.c.o ∂
- "{Libraries}"Interface.o ∂
- -o {TranslatorName}
-